.drawer {
  // height: 500px;
  width:100%;
  display:flex;
  display:-webkit-flex;
  flex-direction:column;  
  .left{
    float:left;
  }
  .right{
    float: right;
  }
  .width22{
    width:22px;
  }
  .userlogo{
    width: 30px;
    border-radius: 50%;
  }
  .userlogo-div{
    height:30px;line-height:30px;
      .padding-left10{
        padding-left:10px;
      }
      .badge{
        display: inline-block;
        float: right;
        height: 12px;
        background: #FC5531;
        color: #f6f8fa;
        line-height: 12px;
        font-size: 14px;
        padding: 5px;
        border-radius: 50%;
        margin-top: 5px;
      }
  }

  .header{
    height: 30px;padding-top: 15px;
    border-bottom: 2px solid #4e4e4e;
    .title-badge{
      position: absolute;
      top: 4px;
      left: 27px;
      font-size: 10px;
      height: 14px;
      background-color: #FC5531;
      padding: 2px;
      line-height: 14px;
      border-radius: 50%;
      color: #f6f8fa;
    }
  }
  .user-div{
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #CCC;
  }
  .user-div:hover{
    color:#31869B;
  }
  .cursor{
    cursor: pointer;
  }
  .button{
    width: 45%;
    height: 40px;
    border-width: 0px;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    font-family: Microsoft YaHei;
    font-size: 17px;
  }
  .button-cancel{
    color: white;
    background: #fdffff;
    border:1px solid #CCCCCC;
    color:#4e4e4e;
  }
  .button-send{
    color: white;
    background: #31869b;
  }
  .button-div{
    margin-top: 10px;
    z-index:50;
  }
  .dialog-chat{
    width:100%;
  }
  .chat{
    height:68vh;border-left:1px solid #CCC;border-right:1px solid #CCC;overflow-x: hidden;overflow-y: auto;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #F5F5F5;
    // 聊天对话框样式
    /* 微信气泡 */
    div.speech {
        float: left;
        margin: 10px 0;
        padding: 8px;
        table-layout: fixed;
        word-break: break-all;
        position: relative;
        background: -webkit-gradient( linear, 50% 0%, 50% 100%, from(#ffffff), color-stop(0.1, #ffffff), color-stop(0.5, #ffffff), color-stop(0.9, #ffffff), to(#ffffff) );
        // border: 1px solid #989898;
        border-radius: 8px;
    }
    div.speech:before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        left: 15px;
        top: -20px;
        border: 10px solid;
        border-color: transparent transparent #FFFFFF transparent;
    }
    div.speech:after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      left: 17px;
      top: -16px;
      border: 8px solid;
      border-color: transparent transparent #ffffff transparent;
    }
    div.speech.right {
      display: inline-block;
      // box-shadow: -2px 2px 5px #CCC;
      margin-right: 10px;
      max-width: 75%;
      float: right;
      background: -webkit-gradient( linear, 50% 0%, 50% 100%, from(#9EEA6A), color-stop(0.1, #9EEA6A), color-stop(0.4, #9EEA6A), color-stop(0.8, #9EEA6A), to(#9EEA6A) );
    }
    div.speech.right:before {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      top: 9px;
      bottom: auto;
      left: auto;
      right: -10px;
      border-width: 9px 0 9px 10px;
      border-color: transparent #FFFFFF;
    }
    div.speech.right:after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      top: 10px;
      bottom: auto;
      left: auto;
      right: -8px;
      border-width: 8px 0 8px 9px;
      border-color: transparent #9EEA6A;
    }
    div .left {
      display: inline-block;
      // box-shadow: 2px 2px 2px #CCCCCC;
      margin-left: 10px;
      max-width: 75%;
      position: relative;
      background: -webkit-gradient( linear, 50% 0%, 50% 100%, from(#ffffff), color-stop(0.1, #ffffff), color-stop(0.4, #ffffff), color-stop(0.8, #ffffff), to(#ffffff) );
    }
    div .left:before {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      top: 9px;
      bottom: auto;
      left: -10px;
      border-width: 9px 10px 9px 0;
      border-color: transparent #ffffff;
    }
    div .left:after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      top: 10px;
      bottom: auto;
      left: -8px;
      border-width: 8px 9px 8px 0;
      border-color: transparent #FFFFFF;
    }
    .leftimg {
      float: left;
      margin-top: 10px;
    }
    .rightimg {
      float: right;
      margin-top: 10px;
    }
    .leftd {
      clear: both;
      float: left;
      margin-left: 10px;
    }
    .rightd {
      clear: both;
      float: right;
      margin-right: 10px;
    }
    
    .leftd_h{
      width: 36px;
      height: 55px;
      border-radius: 100%;
      display: block;
      float: left;
      overflow: hidden;
    }
    
    .leftd_h img{
      display: block;
      width: 100%;
      height: auto;
    }
    .rightd_h{
      width: 36px;
      height: 55px;
      border-radius: 100%;
      display: block;
      float: right;
      overflow: hidden;
    }
    
    .rightd_h img{
      display: block;
      width: 100%;
      height: auto;
    }
    .logo{
      width: 36px;
      border-radius: 50%;
      float: left;
      margin-top: 12px;
    }

  }
  .editor-div{
    height:20vh;
  }
  @media (max-width: 1366px) {
    .chat{
      height:52vh;
    }
    .button-div{
      margin-top: 15px;
    }
    .editor-div{
      height:30vh;
    }
  }
  .chat::-webkit-scrollbar {
    width: 6px;
  }
  .chat::-webkit-scrollbar-track {
    background-color:#FFFFFF;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius:2em;
  }
  .chat::-webkit-scrollbar-thumb {
    background-color:#CCC;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius:2em;
  }
  .back-img{
    width: 16px;margin-right: 8px;
  }
  .chat-title{
    font-size: 20px;
    font-weight: 500;line-height: 20px;
  }
  /* 遮罩 */
  .mask-show {
    position:fixed;
      z-index:100;
      top:0px;
      bottom:0px;
      width:100%;
      height:100%;
      background-color: rgba(0, 0, 0, 0.5);
  }
  .setbox{
      position:fixed;
      z-index:1100;
      top:0px;
      bottom:0px;
      width:30%;
      height:100%;
      background:#FFFFFF;
      border-left: 1px solid #CFD8DC!important;
      box-shadow:0px 3px 12px rgba(0,0,0,0.12);
      -webkit-transition: all 1s ease;
      transition: all 1s ease;
      // 动画（定位从 -32% 变成 0）
      right:-35%;
      padding:0px 20px 0px 20px;
      .go-login{
        position: absolute;width:400px;height:200px;left:50%;top:50%; margin-left:-200px;margin-top:-100px;cursor:pointer;text-align:center
      }
  }
  // 动画
  .show {
    right: 0;
  }
}
